import request from '@/utils/request'

// 查询列表
export function listIncomedetail(query) {
  return request({
    url: '/system/incomedetail/list',
    method: 'get',
    params: query
  })
}

// 收益详情
export function detail(advIncomeId) {
  return request({
    url: '/system/incomedetail/detail/' + advIncomeId,
    method: 'get'
  })
}

// 查询详细
export function getIncomedetail(advIncomedetailId) {
  return request({
    url: '/system/incomedetail/' + advIncomedetailId,
    method: 'get'
  })
}

// 新增
export function addIncomedetail(data) {
  return request({
    url: '/system/incomedetail',
    method: 'post',
    data: data
  })
}

// 修改
export function updateIncomedetail(data) {
  return request({
    url: '/system/incomedetail',
    method: 'put',
    data: data
  })
}

// 删除
export function delIncomedetail(advIncomedetailId) {
  return request({
    url: '/system/incomedetail/' + advIncomedetailId,
    method: 'delete'
  })
}
